package com.jingdong.repository;


import com.jingdong.pojo.GuanZhuDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface GuanZhuRepository extends JpaRepository<GuanZhuDetail,String> {


    @Query(value = "select id,content,url,times from guanzhu b where b.content = :content AND b.url=:url " ,nativeQuery=true)
    GuanZhuDetail findGuanzhuDeatil(@Param("content") String content,@Param("url") String url) throws  Exception;

}
